package com.powernode.clients;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.powernode.domain.Prod;
import com.powernode.domain.ProdTagReference;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "product-service")
public interface SearchProductServiceClient {
    @GetMapping("/prod/prodTag/getProdTagAndProdTagReference")
    Page<ProdTagReference> selectProdTagReferencePageByTagIdAndSize(@RequestParam("tagId") Long tagId,
                                                                    @RequestParam("size") Integer size);
    @GetMapping("/prod/prod/selectProdListByIds")
    List<Prod> selectProdListByIds(@RequestParam("ids") List<Long> ids);
}
